package org.testing;

import java.util.ArrayList;

public class TeamStorage
{
	private ArrayList<Team> teamStore;
	
	  /**
     * Sole constructor.
     */
	public TeamStorage()
	{
		teamStore=new ArrayList<Team>();
	}
	
	/**
	 * Returns a Team object at specified location.
	 *
	 * @param  a  	the location of the Team object in the ArrayList
	 * @return      the Team object at the specified location
	 * @see         Team
	 */
	public Team getTeam(int a)
	{
		return teamStore.get(a);
	}
	
	/**
	 * Returns the size of the ArrayList  
	 * 
	 * @return      the size of the ArrayList
	 * @see         ArrayList
	 */
	public int getArraySize()
	{
		return teamStore.size();
	}
	
	/**
	 * adds a Team object.  
	 *
	 * @param  a  	the Team object to be added into the ArrayList
	 * @see         Team ArrayList
	 */
	public void addItem(Team a)
	{
		teamStore.add(a);
	}
	
	/**
	 * Clears everything from the ArrayList 
	 *
	 * @see         ArrayList
	 */
	public void clear()
	{
		teamStore.clear();
	}
}
